Re: Sun xterm wont disable echo via ANSI ESC Seq
- From: andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel)
- Date: 18 Jul 2008 16:44:52 GMT
In article <23aa437a-fdd5-4fd6-ab3b-a8248e6631e7@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
smith.jeffreyb@xxxxxxxxx writes:
Well I "kindve" figured this, but this is a detached server I'm
connecting to a remote host.
I tried setting the echo off with a tcsetattr() call but its a socket
(fd) connection not a tty.
At this point it probably obvious I know just enough to be dangerous.
I have the general server-side pseudo code
socket_fd = accept()
.............................
I cant do a tcsetattr on a socket.
How do I establish a tty? Do I establish a pty (pseudo tty)?
I have no idea how to get to a tty-like connection from a socket.
It must be easy since telnet, ftp clients all have to do this --
right?
I read the Stevens book but it's pretty hazy on this.
You need to run a protocol over the socket connection which implements
terminal operations, such as telnet at the simplest level.
(Having said that, finding telnet clients that handle no-echo in line
mode is rather a challenge, given how few telnet server sides support
line mode.)
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
.
- References:
- Sun xterm wont disable echo via ANSI ESC Seq
- From: smith . jeffreyb
- Re: Sun xterm wont disable echo via ANSI ESC Seq
- From: Thomas E. Dickey
- Re: Sun xterm wont disable echo via ANSI ESC Seq
- From: smith . jeffreyb
- Sun xterm wont disable echo via ANSI ESC Seq
- Prev by Date: Re: Strangly large file in /dev/dsk and how to delete it?
- Next by Date: Re: Do shared libraries really save memory?
- Previous by thread: Re: Sun xterm wont disable echo via ANSI ESC Seq
- Next by thread: Re: Sun xterm wont disable echo via ANSI ESC Seq
- Index(es):
Relevant Pages
|