(print (str (char 27) "[2J")) ; clear screenCredit: http://codereview.stackexchange.com/questions/17603/critique-my-clojure-game-of-life-code
(print (str (char 27) "[;H")) ; move cursor to the top left corner of the screen
Showing posts with label Terminal. Show all posts
Showing posts with label Terminal. Show all posts
Thursday, September 24, 2015
How to clear terminal screen in Clojure
Print some ANSI characters
Monday, May 28, 2012
Mac OS X Terminal shortcut keys
Terminal is one of the most frequently using application everyday but I have never had a chance to master its short keys. Today is a good day to start.
As I know, Terminal's short keys come from Emac, when I refer to meta short keys it means that you can use esc button or setting option(alt) button as a meta key. (Settings > Keyboard > Use option as meta key)
As I know, Terminal's short keys come from Emac, when I refer to meta short keys it means that you can use esc button or setting option(alt) button as a meta key. (Settings > Keyboard > Use option as meta key)
- Ctrl + a = Go to the beginning of the line
- Ctrl + e = Go to the end of the line
- Ctrl + l or Command + k = Clear screen
- Ctrl + r = Search for previous commands (pressing more r to get earlier commands)
- Ctrl + w = Delete the word before cursor
- Meta + d = Delete the word after the cursor
- Ctrl + u = Clear the line before cursor
- Ctrl + k = Clear the line after cursor
- Meta + t = Swap last 2 words before cursor
- Ctrl + d = Delete a character after cursor
- Meta + f = Move cursor to the right one word
- Meta + b = Move cursor to the left one word
Subscribe to:
Posts (Atom)
Collectd PostgreSQL Plugin
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
-
sudo su postgres supply your Mac password modify /Library/PostgreSQL/9.x/data/pg_hba.conf from local all all md5 to local all all ...
-
Put your cursor on the text box of the post/comment you want to indent Go to the menubar at the top of the screen Edit > Emoji & ...
-
I ran to this error the other day when I tried to export a dump file from a slave Postgres database. cpg_dump: Dumping the contents of ta...