mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-26 02:32:49 +00:00
configure blessed's screen log and/or dump
This commit is contained in:
parent
706d838bd3
commit
587793ea00
@ -6,6 +6,24 @@ let screen: blessed.Widgets.Screen = null;
|
||||
|
||||
// https://github.com/chjj/blessed/blob/master/test/widget-autopad.js
|
||||
|
||||
screen = blessed.screen({
|
||||
log: __dirname + "/logs/just-logs.log"
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
log: __dirname + "/logs/just-logs.log",
|
||||
dump: false
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
dump: __dirname + "/logs/logs-and-all-in-and-output.log"
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
log: __dirname + "/logs/logs-and-all-in-and-output.log",
|
||||
dump: true
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
dump: __dirname + "/logs/autopad.log",
|
||||
smartCSR: true,
|
||||
|
||||
8
types/blessed/index.d.ts
vendored
8
types/blessed/index.d.ts
vendored
@ -1,6 +1,8 @@
|
||||
// Type definitions for blessed 0.1
|
||||
// Project: https://github.com/chjj/blessed
|
||||
// Definitions by: Bryn Austin Bellomy <https://github.com/brynbellomy>, Steve Kellock <https://github.com/skellock>
|
||||
// Definitions by: Bryn Austin Bellomy <https://github.com/brynbellomy>
|
||||
// Steve Kellock <https://github.com/skellock>
|
||||
// Max Brauer <https://github.com/mamachanko>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@ -925,12 +927,12 @@ export namespace Widgets {
|
||||
/**
|
||||
* Create a log file. See log method.
|
||||
*/
|
||||
log?(...msg: any[]): void;
|
||||
log?: string;
|
||||
|
||||
/**
|
||||
* Dump all output and input to desired file. Can be used together with log option if set as a boolean.
|
||||
*/
|
||||
dump?: string;
|
||||
dump?: string | boolean;
|
||||
|
||||
/**
|
||||
* Debug mode. Enables usage of the debug method. Also creates a debug console which will display when
|
||||
|
||||
Loading…
Reference in New Issue
Block a user