Compare commits

...

2 Commits

Author SHA1 Message Date
b1ek f790041042
add ps command 2023-03-20 08:52:45 +10:00
b1ek c6f39c986d
change styles 2023-03-20 08:52:38 +10:00
7 changed files with 38 additions and 2 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@ dist
*.log
*.tmp
*cache*

View File

@ -7,6 +7,7 @@
"license": "MIT",
"devDependencies": {
"assert": "^2.0.0",
"buffer": "^5.5.0",
"events": "^3.1.0",
"parcel": "^2.8.3",
"parcel-namer-without-hash": "^0.0.1",

View File

@ -10,6 +10,7 @@ let cmds = {
'export_file': require('./export_file'),
'import_file': require('./import_file'),
'zsh': require('./zsh'),
'ps': require('./ps'),
// alias l='ls -l'
'l': (a,t) => {require('./ls')([...a, '-l'], t)},

View File

@ -0,0 +1,20 @@
const { Terminal } = require("xterm");
/**
*
* @param {string[]} argv
* @param {Terminal} terminal
*/
module.exports = (argv, terminal) => {
if (argv.indexOf('--help') != -1) {
terminal.write(
`Usage: ${argv[0]} [OPTIONS]
Show current process list`);
return;
}
terminal.write(
`\tPID\tTTY\tTIME\tCMD
42\tpts/0\t00:00:00\tzsh
43\tpts/0\t00:00:00\tps
`);
}

View File

@ -3,7 +3,7 @@
<head>
<title>resume.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="rootstyle.css" />
<link rel="stylesheet" href="standalone_page.css" />
</head>
<body>

View File

@ -1 +0,0 @@
../../../public/static/ui/resume.css

13
src/standalone_page.css Normal file
View File

@ -0,0 +1,13 @@
body, html {
margin: 0;
padding: 0;
}
div#resume_js_app {
background: #212121;
position: fixed;
top:0;left:0;
width: 100%;
height: 100%;
padding: 16px 10px;
}