File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
client/src/templates/Challenges/classic Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1+ .xterm-screen {
2+ height : 100vh !important ;
3+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type { FitAddon } from 'xterm-addon-fit';
44import { useTranslation } from 'react-i18next' ;
55
66import { registerTerminal } from '../utils/python-worker-handler' ;
7+ import './xterm.css' ;
78
89const registerServiceWorker = async ( ) => {
910 if ( 'serviceWorker' in navigator ) {
@@ -35,6 +36,7 @@ export const XtermTerminal = ({
3536 const disposables : IDisposable [ ] = [ ] ;
3637 const { Terminal } = await import ( 'xterm' ) ;
3738 const { FitAddon } = await import ( 'xterm-addon-fit' ) ;
39+
3840 // Setting convertEol so that \n is converted to \r\n. Otherwise the terminal
3941 // will interpret \n as line feed and just move the cursor to the next line.
4042 // convertEol makes every \n a \r\n.
You can’t perform that action at this time.
0 commit comments