Thursday 05 Dec 2013

Thursday 05 Dec 2013

#!/bin/bash

up=\$'\x1b[A' # 送出讓 cursor 往上的 key echo "test" # print test\n echo -ne \$up # 送出 up echo "1" # 再輸出1\n

就會看到 \$ 1est

http://en.wikipedia.org/wiki/ANSI_escape_code

Comments