forked from xtermjs/xterm.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on fixing Issue xtermjs#3293
Signed-off-by: Arup Chauhan <[email protected]>
- Loading branch information
1 parent
f186475
commit e77eb04
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"no-inline-styles": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>xterm.js Test</title> | ||
<script src="./node_modules/@xterm/xterm/lib/xterm.js"></script> | ||
<link rel="stylesheet" href="./css/xterm.css"> | ||
<script> | ||
console.log('Script is running'); | ||
const terminal = new Terminal({ | ||
cursorStyle: 'underline', // Custom user-defined cursor style | ||
}); | ||
|
||
const userCursorStyle = terminal.options.cursorStyle; | ||
console.log('User Cursor Style:', userCursorStyle); // Print the value of userCursorStyle | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
console.log('DOM fully loaded and parsed'); | ||
terminal.open(document.getElementById('terminal')); | ||
console.log('Sending control sequence as given 1'); | ||
terminal.write('\x1b[5 q'); | ||
console.log('User Cursor Style:', userCursorStyle); | ||
console.log('Current Style:', terminal.options.cursorStyle); | ||
|
||
terminal.focus(); | ||
console.log('Sending control sequence as given 2'); | ||
terminal.write('\x1b[0 q'); | ||
console.log('User Cursor Style:', userCursorStyle); | ||
console.log('Current cursor style', terminal.options.cursorStyle) | ||
terminal.focus(); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div id="terminal" style="height: 100%; width: 100%;"></div> | ||
</body> | ||
</html> |