2011年8月3日 星期三

Linux and tty terminal

Ubuntu 要怎樣跟 uart/com port 連呢
1. 用 moserial ---- under studying
2. 用 screen
screen /dev/ttyS0 115200,cs8,-ixon,-ixon,istrip
.screenrc
# kill startup message
startup_message off

# define a bigger scrollback, default is 100 lines
defscrollback 1024

# remap CTRL-A to CTRL-]
escape ^]]

# status bar
hardstatus on
hardstatus alwayslastline "%{rk}%H %{gk}%c %{yk}%M%d %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"

沒有留言: