[erlang-questions] Pretty print and clear in the shell

mog mog-lists@REDACTED
Thu Jun 19 00:45:33 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all  I thought it would be cool to have color printing like
1> io:format("\033[31m Hello \033[0m~n").
 Hello
ok
(that would be in color if this wasn't plain text ^_^.  However this
is currently escaped over the shell and ssh.  Also included in this
patch is clear support for the shell.  typing ^L clears the screen as
does io:clear() or l().  Hope this helps

Mog

PS sorry for cross post.  I was just hoping for more feedback.  Now to
go implement .erlang-history....
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIWZALeq+tARrxhnsRAvzLAJ4kxKuD/h78r1J7gS/LAs3i2xKmNwCgpayR
xoPDYQzYWizmjvBlqDfKy0g=
=YHY/
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: print-clear.diff
Type: text/x-patch
Size: 6879 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080618/1bdadb25/attachment.bin>


More information about the erlang-questions mailing list