Results 1 to 3 of 3

Thread: keys not working properly in terminal program

  1. #1
    Join Date
    Sep 2011
    Beans
    1

    keys not working properly in terminal program

    i had recently installed jdk and all required programs to work on java.
    but when i make a new program byr vi programname.java
    and when new file open the keyboard keys are not working properly
    like when i press scroll up down keys A B is printed and also the backspace is not working.

  2. #2
    Join Date
    Apr 2011
    Location
    Maryland
    Beans
    1,461
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: keys not working properly in terminal program

    I might be making a poor assumption here, so pardon me if I'm wrong. But it sounds like you might not be familiar with using vi to write scripts. It's not as intuitive as you think at first, and you might do better with something like "Nano" to write your scripts. Just replace the "vi" with "nano" when you're trying to create the script:

    Code:
    nano programname.java
    Here are the basic vi commands, just in case you're not familiar with how it works:

    http://www.cs.colostate.edu/helpdocs/vi.html

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    vi or nano

    +1 for nano

    If you're going to use vi, then there are some basics that you have to cover first. Once you do that, it's a very useful and powerful editor. It's good to know a little vi because it will always be there on any system you log into. But for now, nano should be good enough and is much easier.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •