LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 09-30-2008, 03:09 PM   #1
Ruler2112
Member
 
Registered: Oct 2004
Location: Michigan, US
Distribution: Redhat 7.3, 9.0; Slackware 10, 10.1, 10.2, 11; FreeBSD 7.0; KnoppMyth 5.5
Posts: 125

Rep: Reputation: 16
Cool Special Keys Non-Functional via TeraTerm


I have a FreeBSD 7.0 box running as a mail server. I routinely have to update the ports on it, as well as other stuff through the console. Instead of sitting in the basement where the machine is, I ran an ethernet cable to my office and threw another NIC in the machine. I have WebMin and telnetd running to provide access for myself. (And yes, before I get 847,352 people telling me that telnet is bad and to use ssh instead, telnet is only accessible from the line going to my office. I originally tried to set up ssh, but got confused and finally just said "screw it" after an hour of playing around with it - telnet was literally 3 minutes to get going.) The pf firewall only allows connections on the WebMin and telnet port from the line going to my office for security. I plug the ethernet cable into a laptop that is used primarily for this purpose.

The problem I'm having is that I am unable to use any special keys - delete, home, page up, page down, end, insert - on the laptop when sued. I'm using TeraTerm Pro 2.3 to telnet to the FreeBSD box. I searched high and low and was able to find a sort-of solution. On the TeraTerm home page, there's a link to a teralin1.tgz file. Inside this file are instructions on how to make these keys work. I followed the directions and have it working such that if I log in as a user, the keys work in the shell. If I use su -l to become root (as I need to do in order to perform 90+% of what I use this connection for), the keys emit a ~ on the screen, but only in the shell; they work fine in vim.

The teralin1.tgz file contains information on a new terminal type, teraterm. In order to use tic to compile the terminal info file, I needed to use my Slackware box, then move the output file over to the FreeBSD machine. (The FreeBSD team, in their infinite wisdom, decided to take out this utility that takes up a whopping 43k of space at some point in the past. Just like to make life hard I guess...) I put this in /usr/share/misc/t, which is where the man page for term says to put it, but really don't know if this is correct or not. When I log in, the TERM variable is set to teraterm, as it should be according to the instructions. This is specified in the TERATERM.INI file that's also included in the same archive. There's also a keyboard.cnf file with the key mappings for TeraTerm in it; I'm using this as well.

No matter what circumstance I'm in, the end key doesn't work in vim. Instead, it just changes the case of the character the cursor is on. The rest of the keys do function as expected in vim. The end key works fine on the command line, but only when not sued.

Another thing that would be nice is to have a colored directory listing like is standard on Linux. (And yeah, I know I'm getting picky here... ) There is syntax coloring in vim, so I know the terminal is capable of outputting color, but ls doesn't show anything but black & white.



Bare Questions:

How to I fix the special keys - insert, delete, home, page up, page down, end - in the shell after I su to root?

How to I fix the end key to behave as it should in vim?

How do I get a colored directory listing?



Thanks in advance for any help.
 
Old 10-02-2008, 11:18 AM   #2
Ruler2112
Member
 
Registered: Oct 2004
Location: Michigan, US
Distribution: Redhat 7.3, 9.0; Slackware 10, 10.1, 10.2, 11; FreeBSD 7.0; KnoppMyth 5.5
Posts: 125

Original Poster
Rep: Reputation: 16
*bump* Anyone?
 
Old 05-05-2009, 02:06 PM   #3
robogymnast
Member
 
Registered: Dec 2005
Location: Boston, USA
Distribution: Kubuntu, Debian
Posts: 78

Rep: Reputation: 16
I'm having the same problem - when connecting to a machine using ssh my "end" and "delete" keys just print a "~". Very annoying and I haven't found a fix yet, will post if I do.
 
Old 05-08-2009, 03:03 AM   #4
wanghao
Member
 
Registered: Mar 2007
Distribution: centos
Posts: 126

Rep: Reputation: 15
which shell you are using ?
 
Old 05-08-2009, 11:33 AM   #5
Ruler2112
Member
 
Registered: Oct 2004
Location: Michigan, US
Distribution: Redhat 7.3, 9.0; Slackware 10, 10.1, 10.2, 11; FreeBSD 7.0; KnoppMyth 5.5
Posts: 125

Original Poster
Rep: Reputation: 16
/bin/csh here, the default.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Special keys on keyboard? jmite Linux - Hardware 1 08-08-2008 06:42 PM
SRGP use special keys lito_117 Programming 0 11-13-2007 09:46 AM
LCD Brightness keys not functional on ASUS W6F zbydra Linux - Laptop and Netbook 1 12-25-2006 07:47 AM
Special keyboard keys rdabra Linux - Newbie 3 01-04-2006 05:01 AM
Special Keys raven Linux - Laptop and Netbook 0 10-16-2003 09:21 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration