Implement terminal restart functionality and enhance model settings menu in InkApp. Add methods for restarting the terminal and adjusting model settings, improving user interaction and menu navigation. Update state management for better handling of model settings adjustments.
This commit is contained in:
@@ -118,10 +118,16 @@ class TerminalService extends EventEmitter {
|
||||
this.ptyProcess.kill();
|
||||
this.ptyProcess = null;
|
||||
}
|
||||
this.started = false;
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
restart() {
|
||||
try { this.dispose(); } catch {}
|
||||
try { this.start(); } catch {}
|
||||
}
|
||||
}
|
||||
|
||||
const terminalService = new TerminalService();
|
||||
|
||||
Reference in New Issue
Block a user