Comments (5)
Same problem here. I cannot type a "@" in the terminal
from tty.js.
Hello, has this been solved in tty.js? I cannot get this to work on my install and this is the only complaint I have ;( not able to write @$ and {][} etc :)
How can we get tty.js updated with the new term.js into tty.js?
(just for the record I tried doing it manually but I could not get it working)
from tty.js.
same problem here. my current workaround: alt + numpad numbers to send char codes.
fun fact: using arch linux and chrome will work fine. this problem only appears to me using windows 7 and chrome
german keyboard layout here.
from tty.js.
On french keyboards :
Chars "~", "@", "]" "}" work;
but AltGr + 3, 4, 5, 6, 7 and 8 doesn't work.
I can't get "#" "{" "[" "|" "`" and "" chars.
This is very anoying, because it's the best websocket terminal ever
from tty.js.
I found the bug :D
I added "if (ev.altKey && ev.ctrlKey) {"
before "if (ev.ctrlKey) {"
and I replaced with "} else if (ev.ctrlKey) {"
To work this part of code need "ev.ctrlKey" without "ev.altKey" or reciprocally
There is another equivalent code : "ev.ctrlKey and not ev.altKey" / "ev.altKey and not ev.ctrlKey" for the two "if".
Diff with current master :
(root|/var/www/js) diff term.js term.js.master
2761,2763c2761
< if (ev.altKey && ev.ctrlKey) {
<
< } else if (ev.ctrlKey) {
---
> if (ev.ctrlKey) {
Working code :
// F11
case 122:
key = '\x1b[23~';
break;
// F12
case 123:
key = '\x1b[24~';
break;
default:
// a-z and space
if (ev.altKey && ev.ctrlKey) { // Added
// Empty
} else if (ev.ctrlKey) {
if (ev.keyCode >= 65 && ev.keyCode <= 90) {
// Ctrl-A
if (this.screenKeys) {
if (!this.prefixMode && !this.selectMode && ev.keyCode === 65) {
this.enterPrefix();
return cancel(ev);
}
}
// Ctrl-V
if (this.prefixMode && ev.keyCode === 86) {
this.leavePrefix();
return;
}
// Ctrl-C
from tty.js.
Related Issues (20)
- cannot build tty.js : HOT 1
- Programatically run commands into terminal HOT 1
- Include readme instructions for username / password HOT 1
- Windows 10, unable to install HOT 2
- Print text on a terminal
- Is it possible to disable authentification HOT 1
- Can't type in arobase or accentuated char from Windows Chrome HOT 3
- tty.js dont install on windows HOT 1
- Cant Use tty.js with Python urllib module
- TypeError: Cannot read property 'prototype' of undefined HOT 18
- local log file
- MySQL connection and print data to index.html
- Some Times I use WiFi,but it take a long time to get connection to server
- State of PTY is not maintained when reopening the old PTY process
- node-gyp.js rebuild fails HOT 1
- is this library still maintained? any better alternative? HOT 1
- new branch of tty.js HOT 3
- Cannot find module 'pty.js' even though it has been installed. Fixed it!
- Installation fails on macOS with node v10.8.0
- node-gyp rebuild error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tty.js.