8-bit ascii chars over telnet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've tried connecting to various telnet bbs's, and have run into the
problem of high ascii characters not being interpreted correctly. If
anyone else has had such problems, the below script might help with
things. It's called bbs. It enables support for high ascii chars, connects
to the host specified as argument (or ner.uark.edu, which should be
released as of tomorrow) if no host is specified. After connection closes
it sets the terminal back to its prior state.

Chris

#!/bin/bash
# proces argument
HOST=$1
HOST=${HOST:=ner.uark.edu}
# enable extended ascii
echo -en '\033(U'
# connect to host
echo "Connecting to ${HOST}"
telnet -8 ${HOST}
# remove extended ascii support
echo -en '\033(B'





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux