Re: [問題] 文字介面的選單?

看板Linux作者 (肥兔小欽)時間15年前 (2010/06/03 11:12), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串3/3 (看更多)
※ 引述《asleepme (扯...)》之銘言: : 請問一下 : 我想弄一個在command line下的選單 : 這是要透過script嗎? : 我有一份list : 希望呈現出來後有光棒可以上下左右選擇 : 選了後執行相對應的行為 : 請教一下要怎麼做 : 謝謝 如果想要透過shell script寫,你可以使用dialog來處理。 Dialog: An Introductory Tutorial http://www.linuxjournal.com/article/2807 User Interface using dialog Utility - Putting it all together http://www.freeos.com/guides/lsst/ch04sec11.html 第2個網址就有一個現成的範例可以參考。 : P.S. 因為常常ssh到不同host,很難記 : 想弄一個簡單的方式去連,有什麼推薦的現成方法嗎? 我是寫在.ssh/config中,例如: Host birdnest HostName birdnest.twbbs.org User bbs Port 22 Host ptt HostName ptt.twbbs.org User bbs Port 22 只要用ssh ptt就可以了,甚至hostname不需要寫全,用tab鍵也能幫你補齊。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.248.102.9

06/03 21:31, , 1F
我直接 alias ptt 'ssh bbs@ptt.cc' :P
06/03 21:31, 1F
文章代碼(AID): #1C1nsQ3S (Linux)
討論串 (同標題文章)
文章代碼(AID): #1C1nsQ3S (Linux)