15 lines
304 B
JavaScript
15 lines
304 B
JavaScript
/**
|
|
* The main entrypoint when using Bun as the runtime
|
|
*/
|
|
|
|
import { getTermios } from "../common/termios.ts";
|
|
export * from './terminal_io.ts';
|
|
|
|
export async function init() {
|
|
const t = await getTermios();
|
|
|
|
process.on('exit', () => {
|
|
console.info('Disabling raw mode');
|
|
t.disableRawMode();
|
|
})
|
|
} |