Amiga.org

The "Not Quite Amiga but still computer related category" => Alternative Operating Systems => Topic started by: redrumloa on September 17, 2006, 02:03:55 AM

Title: Q for Linux heads! How to suppress character codes for dumb terminals?
Post by: redrumloa on September 17, 2006, 02:03:55 AM
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.
Title: Re: Q for Linux heads! How to suppress character codes for dumb terminals?
Post by: Merc 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!