Git Product home page Git Product logo

gsc's People

Contributors

cd3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fryguy128

gsc's Issues

CPU ussage

gsc's cpu usage can get high. Need to figure out how to make it wait for user input while idle. Currently we are using a select/poll loop.

Monitor user input in auto mode

In auto mode, the script is ran and user input is ignored. But since the terminal is placed into raw mode, signals are not send to gsc, so the user can't kill a running gsc session with Ctrl-C.

The user should at least be able to kill gsc, but it might be useful to accept some command in auto mode so the user could pause for example. This would probably require making the user input handler async. It currently blocks.

cleanup on unexpected exists

If gsc does not run the script and exit as normal, the child processes can stay alive. For example, if something causes a segfault in the main proc, the child proc are not killed.:

add conan

this would be a good project to test the conan package manager on.

Pressing Home, End, PgUp, PgDwn, etc causes freeze

If these keys are pressed during a demo, the demo freezes and has to be terminated. The monitor shows that gsc is still receiving key pressed through.

A quick look at show_key shows that all of these keys actually send 4 characters. Not sure if that is the problem. Perhaps a key combination is being sent to the shell that turns off stdout?

add support for running in ncurses window

It would be nice to be able to run a session in an ncurses window so we could display some extra information while a session is running.

For example:

  • a window that shows what keys were "pressed", even if they are not visible.
  • rewind support. the ability to go back in the session script and have the display output window rewind as well.
  • display current input mode (insert, throughput, command, etc)

add wait chars as a control command

The --wait-chars option allows a list of characters that gsc should pause on, for example if you want gsc to wait for user input on all tabs. It would be useful to change this on the fly. If you have a command that produces a prompt asking for user input (for example "Are you sure? [Y/n]"), sometimes these prompts only read one char so the prompt exits as soon as the y char is sent. In this case, it would be nice to temporarily make gsc pause on y so it will show before the prompt disappears.

Write session to a file

It would be useful to write the commands that actually get ran to a file. This would allow a script to be updated/corrected while running.

terminal configuration

need to configure terminal size when starting a session.

also, terminal settings are not being restored correctly after a session finishes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.