
Do you ever think about why linux console doesn't have horizontal scroller? This is the most useful feature which I expect from any console emulator because i work a lot from console with mysql database. If you need to print in console very very long lines without line wrap then this little utility is for you. Written in python using pygtk and vte.
Requirements:
The implementation has some limitation (configuration must be written inside the code) no fancy menu nor fullscreen etc. Maybe in the future. Because the program is very short I presented it here (no downloads, just copy & paste)
#!/usr/bin/env python
import vte
import gtk
import pango
import os
import signal
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
window.connect('destroy', lambda w: gtk.main_quit())
# initial window size
window.resize(640, 480)
terminal = vte.Terminal()
terminal.connect("child-exited", lambda w: gtk.main_quit())
# here you can set backscroll buffer
terminal.set_scrollback_lines(5000)
# encoding for console
terminal.set_encoding("UTF-8")
terminal.set_cursor_blinks(False)
# here you can set background image
#terminal.set_background_image_file("some/background/picture/here")
# transparency
terminal.set_background_saturation(0.1)
# font for terminal
font = pango.FontDescription()
font.set_family("Terminus")
# font size
font.set_size(11 * pango.SCALE)
font.set_weight(pango.WEIGHT_NORMAL)
font.set_stretch(pango.STRETCH_NORMAL)
terminal.set_font_full(font, True)
child_pid = terminal.fork_command()
scroll = gtk.ScrolledWindow()
scroll.set_policy(0,1)
scroll.add_with_viewport(terminal)
window.add(scroll)
window.show_all()
# This must be here! before gtk.main()
# here you can set columns count (first param)
terminal.set_size(500,0)
try:
gtk.main()
except KeyboardInterrupt:
pass