Hacker News new | ask | show | jobs
by rubythis 3268 days ago
Do you mean GNU Debugger? Is the debugger running on your machine? How would the API work?

How would an API control Bash? Is the Bash shell running on your machine?

Regarding a real time stock price API, I thought of this as well. I will look into it. If I can find a good source of data this seems like a great feature.

1 comments

because I'm creating a terminal emulator for bash. and I realized that there is no way to communicate with bash other than sending and receiving text.

if bash supports an api to send and execute command and query for states. that will make many things easier.

for example, query for the current location "pwd". many terminal emulator just send this command and parse the returned string and hide it from the user.

if bash supports an api for you to directly query for this information, the terminal enumerator can be implemented cleanly.

for gdb, I want to understand a code by generating flame graph like execution history.

for that I want to step over each line of the program and dump a call stack. gdb has python support within it, but it doesn't seem to provide an api to control it from the outside.