-func NewTermPane(x, y, w, h int, t *shell.Terminal, id uint64, tab *Tab) *TermPane {
+func NewTermPane(x, y, w, h int, t *shell.Terminal, id uint64, tab *Tab) (*TermPane, error) {
+ if !TermEmuSupported {
+ return nil, errors.New("Terminal emulator is not supported on this system")
+ }
+