A wxPython terminal emulator control - Linux Only.
- Copy&Paste: Ctrl + Shift + C / Ctrl + Shift + V and middle button
- Basic suport for 256 colours
- Scrolled buffer (probably some day...)
- Many key mappings (for eg the F keys does't work)
- Mouse support (for eg. the ability to use the mouse with htop)
- Extend the selection when shift is pressed
wxPython - http://www.wxpython.org
pyte - http://github.com/selectel/pyte
::
import wx
import wxterm
class Terminal(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
term = wxterm.TerminalWindow(self)
term.ForkCommand('bash', ['bash'])
term.Bind(wxterm.EVT_TERM_CHILD_EXIT, self.OnExit)
s = wx.BoxSizer(wx.VERTICAL)
s.Add(term, 1, wx.EXPAND, 0)
self.SetSizer(s)
def OnExit(self, event):
self.GetParent().Close()
if __name__ == '__main__':
app = wx.App(0)
f = wx.Frame(None, size=(800, 500))
Terminal(f).SetFocus()
f.Show()
app.MainLoop()