nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
5.03k stars 489 forks source link

Add basic file management to the Console #289

Open PibePlayer opened 7 years ago

PibePlayer commented 7 years ago

I would like to see working cp, mv, rm commands on the command line

trevortomesh commented 6 years ago

I'd love to work on this -- but I am not sure where to find the relevant code. Anyone know?

frenetic commented 6 years ago

@trevortomesh take a look at https://github.com/nesbox/TIC-80/blob/master/src/console.c.

The line https://github.com/nesbox/TIC-80/blob/master/src/console.c#L2357 lists the available commands, and each of them is associated to a console method. I guess you just have to do the same for your commands.

You can read the following methods that might help you writting your own:

Good luck o/

rodigu commented 5 months ago

I would like to see working cp, mv, rm commands on the command line

This would be a great feature