scroll/src/deno/mod.ts

16 lines
318 B
JavaScript
Raw Normal View History

/**
* The main entrypoint when using Deno as the runtime
*/
import {getTermios} from "../common/termios.ts";
2023-11-01 15:05:31 -04:00
export * from './terminal_io.ts';
export async function init() {
const t = await getTermios();
globalThis.onbeforeunload = (): void => {
console.log('Disabling raw mode');
t.disableRawMode();
};
2023-11-01 15:27:31 -04:00
}