Make a command line
Make a command line
Hi alllllll!
I have done jamesmolloy's tutorial and i will now make a simple command line, or are the some other thing i most do first? If not, can somebody give me tutorials to how i make a simple command line?
Waves'
Danand
I have done jamesmolloy's tutorial and i will now make a simple command line, or are the some other thing i most do first? If not, can somebody give me tutorials to how i make a simple command line?
Waves'
Danand
Sorry my english, i'm from norway..
I write my own os now, DanOS. Website coming soon!
I write my own os now, DanOS. Website coming soon!
Re: Make a command line
Do you want to write an OS which is entirely based on tutorials or what?Danand wrote: .. can somebody give me tutorials to how i make a simple command line?
Anyway,
A command line is easy. You just compare the whole string starting at the first column to the first char '\n' with an other string if there's a match then do that or that. This could already be a basic CLI and is implemented in ca. 2 hours or even less.
A command line is easy. You just compare the whole string starting at the first column to the first char '\n' with an other string if there's a match then do that or that. This could already be a basic CLI and is implemented in ca. 2 hours or even less.
Last edited by cyr1x on Thu Mar 27, 2008 2:21 pm, edited 1 time in total.
- codemastersnake
- Member
- Posts: 148
- Joined: Sun Nov 07, 2004 12:00 am
- Contact:
Code: Select all
if (!strcmp(strtolower(input), shell_entries[i].name))
{
shell_entries[i].function(args);
return;
}
- codemastersnake
- Member
- Posts: 148
- Joined: Sun Nov 07, 2004 12:00 am
- Contact:
- codemastersnake
- Member
- Posts: 148
- Joined: Sun Nov 07, 2004 12:00 am
- Contact:
Try http://www.osdever.net there are plenty of good tutorials.
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
All the info you need on making a command line is on theses sites!and now I'm trying to find things on google, in this forum and wiki.. If somebody have i nice tutorials com with it!
Seriously, basic command lines are easy.
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Like now, for example!AlexExtreme wrote:I'll repeat what others have said: You won't get a tutorial for everything. If you do everything in your OS from tutorials, it won't be "your" OS, and when you come to something that you can't find a tutorial for you'll most likely have no hope.
@OP: You'll need a working keyboard driver. I am (actually) intending to put up a few more tutorials detailing moving to user mode, syscalls and writing drivers. So people like you can go a little further before you get completely stuck