Commit Graph

51 Commits

Author SHA1 Message Date
Martin Fournier
e7aa977eb0 Persist terminal command history in game save
Copy the terminal commands into the player object so that they are saved
between game reloads.

Adds a 'history' command to display history, and a 'history -c' command
to clear it from both the current terminal & the player's save.
2022-01-23 17:09:54 -05:00
Martin Fournier
aa3a253b14 Cancel debounced events on terminal unmount 2022-01-14 14:32:30 -05:00
Frank-py
73adc71965
Updated Terminal.tsx to add keypress event.
Added keypress event to delete the word after input by pressing "alt" + "d".
2021-12-25 23:11:21 +01:00
hydroflame
c723c7ecd2
Merge pull request #1957 from billyvg/feat/add-ctrl-u-clear-line
feat: Add `ctrl+u/k/w` hotkeys
2021-12-18 14:35:12 -05:00
Olivier Gagnon
81e291ef6a change color of terminal input 2021-12-16 20:20:07 -05:00
Billy Vong
2e9a42d74c add comment 2021-12-16 17:03:49 -05:00
Billy Vong
2804b6ae56 remove console 2021-12-16 17:03:15 -05:00
Billy Vong
d4bf6100a3 feat: Add ctrl+u/k/w hotkeys
Adds the `ctrl+u/k/w` hotkeys to clear line before and after, as well as deleting word before cursor. I implemented deleting word after cursor, but I have not repod the functionality in bash, so I did not add the hotkey.
2021-12-16 16:59:24 -05:00
Olivier Gagnon
fe3aa5a357 rm references to fconf 2021-11-26 18:05:14 -05:00
Olivier Gagnon
b80d12b9f8 v1.0.2 part 1 2021-11-19 15:44:12 -05:00
Olivier Gagnon
504ee46950 terminal colors 2021-10-26 20:26:05 -04:00
Olivier Gagnon
d6ea9c55b1 fixed folder adding space in autocom 2021-10-15 18:33:27 -04:00
Olivier Gagnon
4603216aa0 autocomplete 2021-10-14 22:36:28 -04:00
Olivier Gagnon
33ea31be87 convert autocomplete to tooltip 2021-10-04 17:52:20 -04:00
Olivier Gagnon
cc02701e97 fix autolink wrong font 2021-10-01 16:42:07 -04:00
Olivier Gagnon
4e8bb96f3f removing some of the classes 2021-10-01 13:08:37 -04:00
Olivier Gagnon
c5713fa6d8 learned and implemented default props 2021-09-29 01:49:22 -04:00
Olivier Gagnon
06f716c0fa moved a bunch of files 2021-09-25 14:42:57 -04:00
Olivier Gagnon
1d349c25f7 imrpove terminal performance 2021-09-24 19:12:53 -04:00
Olivier Gagnon
ec33fb411c fix scripts not dying 2021-09-24 19:09:19 -04:00
Olivier Gagnon
a32b8eabe3 SaveObject in ts 2021-09-24 18:40:17 -04:00
Olivier Gagnon
b8faa9dc0b convert player to ts 2021-09-23 18:47:43 -04:00
Olivier Gagnon
66a2adaeb4 update prettier 2021-09-22 12:56:55 -04:00
Olivier Gagnon
558b671206 few bugfix 2021-09-22 11:32:04 -04:00
Olivier Gagnon
f9a4eadb71 removed some of fconf 2021-09-22 01:36:17 -04:00
Olivier Gagnon
55901f0574 Let player copy terminal 2021-09-22 00:57:37 -04:00
Olivier Gagnon
a3e624deba remove ns2 example doing DOM manip 2021-09-20 00:14:30 -04:00
Olivier Gagnon
ce3898367c remove unused css file 2021-09-19 03:38:43 -04:00
Olivier Gagnon
cd0aa192f5 fix terminal not cancelling. 2021-09-19 03:29:36 -04:00
Olivier Gagnon
023f2b8309 ITutorial in react 2021-09-19 00:46:39 -04:00
Olivier Gagnon
61e3959a25 Improve event emitter 2021-09-18 15:44:39 -04:00
Olivier Gagnon
23e8bc2e71 merge master 2021-09-18 02:38:15 -04:00
Olivier Gagnon
aef4aac61a fix terminal not saving state 2021-09-18 02:34:59 -04:00
Olivier Gagnon
9471e8d4a0 Merge branch 'master' into dev 2021-09-18 02:23:04 -04:00
Olivier Gagnon
be9b595590 fix terminal wrap 2021-09-18 02:21:48 -04:00
Olivier Gagnon
45f2f85a30 big work 2021-09-17 19:43:08 -04:00
Olivier Gagnon
1344a17482 Merge branch 'dev' into big-container 2021-09-17 03:09:42 -04:00
Olivier Gagnon
aa0008862c fix term issues 2021-09-17 03:08:15 -04:00
Olivier Gagnon
89ea9aaff5 oops 2021-09-17 02:58:02 -04:00
Olivier Gagnon
acd51e8328 work 2021-09-17 02:04:44 -04:00
Olivier Gagnon
8e764a5524 re-add badges 2021-09-16 21:49:38 -04:00
Olivier Gagnon
757b38327f build 2021-09-16 21:31:29 -04:00
Olivier Gagnon
195dff7c44 fix not being able to ctrlc the terminal 2021-09-16 21:03:14 -04:00
Olivier Gagnon
b6924d6889 better terminal scrolling 2021-09-16 20:14:09 -04:00
Olivier Gagnon
407ed70ae3 mui5 2021-09-16 19:23:03 -04:00
Olivier Gagnon
22648df857 refactor temrinal input for more performace 2021-09-16 18:10:28 -04:00
Olivier Gagnon
07721e1cc5 got rid of some containers 2021-09-16 18:10:28 -04:00
Olivier Gagnon
b682a442fe terminal wrap but it's not perfect 2021-09-16 18:10:28 -04:00
Olivier Gagnon
4a5fb04d41 More work on terminal. 2021-09-16 18:10:28 -04:00
Olivier Gagnon
1890f1fd44 fix terminal not printing the command you just ran. 2021-09-16 18:10:28 -04:00