Welcome, Guest. Please login or register.

Author Topic: Q for Linux heads! How to suppress character codes for dumb terminals?  (Read 774 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline redrumloaTopic starter

  • Original Omega User
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 10126
    • Show only replies by redrumloa
Hi! I am trying to figigure out how to configure getty(??) to supress character codes for use with dumb terminals. I mean REALLY dumb terminals!  I'm talking about a Vic20 with a very basic terminal program, no terminal emulation. I put the Vic20 online last weekend and with a 22 colum screen, you can imagine how painfull it is when flooded with character codes!

Thanks in advance.
Someone has to state the obvious and that someone is me!
 

Offline Merc

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 312
    • Show only replies by Merc
    • http://chebucto.ns.ca/~ah210/Profile.html
Re: Q for Linux heads! How to suppress character codes for dumb terminals?
« Reply #1 on: September 17, 2006, 02:52:12 AM »


If you're using agetty, you can set the terminal type to use on the agetty command line:

agetty [-ihLmnw] [-f issue_file] [-l login_program] [-I init] [-t time-out] [-H login_host] port baud_rate,...  [term]

The term option sets the TERM environment variable when you log in.

I'm sure there's a terminal type that would work -- maybe one of these:

# locate terminfo | grep dumb
/usr/share/terminfo/d/dku7003-dumb
/usr/share/terminfo/d/dumb
/usr/share/terminfo/k/klone+sgr-dumb

# locate terminfo | grep comm
/usr/share/terminfo/c/commodore

Hope that helps!