telnet客端送出指令與伺服端動作 - Linux

Donna avatar
By Donna
at 2015-10-14T13:27

Table of Contents

建議先讀一下這份文件
https://www.ietf.org/rfc/rfc1091.txt
telnet 連線建立時,server 必需知道 client 是哪一種 terminal
如果你想要寫一個 telnet server 或是 telnet client 的程式,
這會是你需要的基楚知識。

如果這不是你要的,其實你的程式是一般應用程式,但是必需使用
全瑩幕控制(也就是那些終端機控制碼),所以你的程式要曉得客
戶是哪一種終端機。有一些相關的 manual page 可以讀一下:

$ find /usr/share/man -name term\*
/usr/share/man/man0p/termios.h.0p
/usr/share/man/man5/term.5.gz
/usr/share/man/man5/terminal-colors.d.5.gz
/usr/share/man/man5/terminfo.5.gz
/usr/share/man/man7/term.7.gz

--
Tags: Linux

All Comments

Rebecca avatar
By Rebecca
at 2015-10-16T22:09
感謝,再研讀看看....

關於使用usb安裝Ubuntu

Tristan Cohan avatar
By Tristan Cohan
at 2015-10-13T20:23
最近正在學習如何使用Ubuntu 很想試著用usb安裝 不過對於每次遇到磁碟切割都很頭痛 原因是我不清楚這個and#34;磁碟and#34;是指usb 還是我的電腦 小妹不才 第一次在此版發文 還請見諒 若有違反板規 也請鞭小力一點 謝謝大家 - ...

我想請教關於MIT license

Tristan Cohan avatar
By Tristan Cohan
at 2015-10-13T14:06
※ 引述《fourdollars (四元)》之銘言: : 另外有一種是主動拋棄著作權的條款 : http://creativecommons.tw/cc0 : 也是挺有趣的 :-) 大部份國家的著作權法是規定著作人格權是不能拋棄的。 能拋棄的只是著作財產權。 例如我國著作權法第二十一條就有規定 ...

我想請教關於MIT license

Hedda avatar
By Hedda
at 2015-10-13T12:33
另外有一種是主動拋棄著作權的條款 http://creativecommons.tw/cc0 也是挺有趣的 :-) ※ 引述《EdwardGJLee (LGJ)》之銘言: : : 推 qas612820704: 我可以請教關於 and#34;不要把別人的 copyright 給丟掉。and#34; 10/1 ...

我想請教關於MIT license

Kyle avatar
By Kyle
at 2015-10-13T07:57
: 推 qas612820704: 我可以請教關於 and#34;不要把別人的 copyright 給丟掉。and#34; 10/12 23:23 : → qas612820704: 跟不用掛MIT的差別嗎? 10/12 23:24 copyr ...

監控串流並用awk及時打印出來

Victoria avatar
By Victoria
at 2015-10-13T00:25
※ 引述《makefriends (5 + 2 = life)》之銘言: : 各位大大 : 小弟想對監控的串流訊息的每一行用awk加上時間戳後存成文字檔。 : 舉個例子: : ping -c 50 127.0.0.1 | awk and#39;{ print strftime(and#34;%Tand#34; ...