Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the console #56

Open
joaodasilva opened this issue Jan 16, 2022 · 0 comments
Open

Improve the console #56

joaodasilva opened this issue Jan 16, 2022 · 0 comments
Labels
help wanted Extra attention is needed tools

Comments

@joaodasilva
Copy link
Contributor

The console (opens with F1) is just another Window.js program, running in a separate process and communicating with the main window. The source file is src/console.js and can be executed directly for development:

$ out/src/windowjs.exe src/console.js

It's also possible to get a console for the console during development.

It tries to give some common controls like Home key and Delete key support, history, etc. but there's still a lot missing to make it more useful:

  • autocomplete
  • line wrapping of long input lines
  • better colors for output e.g. syntax highlight literals
  • mouse support for text selection
  • better dir() output
  • ideally, dir() would be more like in the Chrome Devtools, supporting expanding objects recursively
  • have a help() function as in the Python interpreter, to explore objects and see their documentation inline. Could be pulled from the online site to avoid growing the binary size.

Some of these can be done now, others (like mouse support) will take more effort.

@joaodasilva joaodasilva added help wanted Extra attention is needed tools labels Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed tools
Projects
None yet
Development

No branches or pull requests

1 participant