terminal-kit
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -30,3 +30,3 @@ /* | ||
var tree = require( 'tree-kit' ) ; | ||
var xterm = require( './xterm.generic.js' ) ; | ||
var xterm = require( './xterm.js' ) ; | ||
@@ -37,3 +37,3 @@ | ||
// Amazingly, those uber-standard and uber-common sequences are is *NOT* supported by Konsole... | ||
// Amazingly, those uber-standard and uber-common sequences are *NOT* supported by Konsole... | ||
// SHAME on you KDE! Even the Linux Console support it! | ||
@@ -40,0 +40,0 @@ // This workaround use up()/down() & column(1) |
@@ -1,1 +0,1 @@ | ||
module.exports = require( './xterm-256color.js' ) ; | ||
module.exports = require( './xterm.generic.js' ) ; |
@@ -1,1 +0,65 @@ | ||
module.exports = require( './xterm.js' ) ; | ||
/* | ||
The Cedric's Swiss Knife (CSK) - CSK terminal toolbox | ||
Copyright (c) 2009 - 2014 Cédric Ronvel | ||
The MIT License (MIT) | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
*/ | ||
var tree = require( 'tree-kit' ) ; | ||
var xterm = require( './xterm.js' ) ; | ||
// Fail-safe xterm-compatible | ||
var esc = tree.extend( { preserve: true } , { | ||
// KDE Konsole does not support This workaround use up()/down() & column(1) | ||
nextLine: { on: '\x1b[%UB\x1b[1G' } , | ||
previousLine: { on: '\x1b[%UA\x1b[1G' } | ||
} , xterm.esc ) ; | ||
/* Key Mapping */ | ||
var keymap = tree.extend( { preserve: true } , { | ||
} , xterm.keymap ) ; | ||
module.exports = { | ||
esc: esc , | ||
keymap: keymap , | ||
handler: {} | ||
} ; | ||
{ | ||
"name": "terminal-kit", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"description": "Terminal utilities with supports for colors, styles, inputs, mouse and many more...", | ||
@@ -5,0 +5,0 @@ "main": "lib/terminal.js", |
@@ -32,7 +32,15 @@ #!/usr/bin/env node | ||
//var term = require( '../lib/terminal.js' ) ; | ||
require( '../lib/terminal.js' ).getDetectedTerminal( function( error , term ) { | ||
/* | ||
term( 'Terminal name: %s\n' , term.appName ) ; | ||
term( 'Terminal app: %s\n' , term.app ) ; | ||
term( 'Terminal type: %s\n' , term.type ) ; | ||
term( 'Config file: %s\n' , term.termconfigFile ) ; | ||
term.down( 3 , "123" ).previousLine()( "456" ).nextLine( 2 , "789" ).column( 20 , '20th col' ).down( 3 , '\n' ).hideCursor( false ) ; | ||
process.exit() ; | ||
*/ | ||
//term.down( 3 , "123" ).previousLine()( "456" ).nextLine( 2 , "789" ).column( 20 , '20th col' ).down( 3 , '\n' ).hideCursor( false ) ; | ||
//process.exit() ; | ||
term( 'a\n' )( 'true\n' )( 'warrior\n' ) ; | ||
@@ -39,0 +47,0 @@ term( term.esc.blue.on + 'Blue' + term.esc.blue.off ) ; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
352833
1784