You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

KnightOS Updates

b/[Inactive] KnightOS (TI-73/83+/84+/CSE) Started by Vijfhoek, March 22, 2015, 04:29:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/SirCmpwn March 30, 2015, 03:36:42 AM
Quote from: DJ Omnimaga on March 30, 2015, 03:35:59 AM
Yeah, I meant due to the fact it keeps getting reset to factory settings, though, unless I am missing or misunderstanding something.

You're right that it's useless for keeping track of the time if you have a lot of crashes.
u/CKH4 March 30, 2015, 01:39:00 PM
You could probably add the backup clock code to the calculator off code. It'd only back up the clock when you turned it off and on the ram reset it would restore the last clock time. I don't know though because if someone were to constantly turn off and on their calc it could cause issues.
u/DarkestEx March 30, 2015, 01:58:33 PM
How about using different triggers to save the time. Like every 5 min or on power off, but only if more than 5 mins elapsed since the last time.
u/SirCmpwn March 30, 2015, 01:59:41 PM
Sorry guys, but saving the time isn't feasible. It's not happening.
u/DarkestEx March 30, 2015, 02:02:56 PM
Why not?
The OS can back it up to a file.
But if you don't want we can't do anything though.

Knight OS is awesome.
Maybe we can make another version of the shell as I always found it one of the coolest features of it.
u/SirCmpwn March 30, 2015, 02:05:11 PM
Quote from: DarkestEx on March 30, 2015, 02:02:56 PM
Why not?
The OS can back it up to a file.
But if you don't want we can't do anything though.

Writing files can't be done that frequently. The minimum amount of space a file will take up is 256 bytes (for a 4 byte number that's a bit much) and eventually you have to garbage collect. There would be a lot of Flash erasures involved which would wear out your Flash chip and lead to a bricked calculator in a few years of use.

Quote from: DarkestEx on March 30, 2015, 02:02:56 PM
Knight OS is awesome.
Maybe we can make another version of the shell as I always found it one of the coolest features of it.

Are you talking about the app launcher or the old and deprecated command line shell? You can replace the former with your own version very easily, KnightOS is made to be customizable like that. It's as simple as installing a new one and changing the /bin/launcher symlink.
u/pimathbrainiac March 30, 2015, 02:06:20 PM
* pimathbrainiac mutters something about KOS being open source

Seriously, if you can do it, contribute! I'm sure if it were feasible and someone made a pull request with that modification, it could happen.

EDIT: ninja'd by sir
Last Edit: March 30, 2015, 02:08:52 PM by pimathbrainiac
u/DarkestEx March 30, 2015, 02:06:54 PM
@pimathbrainiac: do you mean me?
Well, I know a lot of C, but only a little Z80-ASM.
Maybe I can still help one day somehow?

@SirCmpwn: I am talking about the shell.
Can we (the users) make another new version of it as it is soo cool :)
Last Edit: March 30, 2015, 02:08:56 PM by DarkestEx
u/pimathbrainiac March 30, 2015, 02:11:40 PM
I mean in general. Although Sir pretty much proved that your feature request can't be done just now.
u/SirCmpwn March 30, 2015, 02:12:06 PM
Quote from: DarkestEx on March 30, 2015, 02:06:54 PM
@pimathbrainiac: do you mean me?
Well, I know a lot of C, but only a little Z80-ASM.
Maybe I can still help one day somehow?

You can write a new shell in C if you like. C support is still experimental but it's getting to the point where it's workable. Of course, if you just want to contribute to KnightOS, there are loads of KnightOS projects in C that run on PCs which you could definitely help with.

Quote from: DarkestEx on March 30, 2015, 02:06:54 PM
@SirCmpwn: I am talking about the shell.
Can we (the users) make another new version of it as it is soo cool :)

I don't understand. Do you mean the command line shell? That was removed because we don't have standard I/O or unix pipes yet.
u/CKH4 March 30, 2015, 02:14:14 PM
I think that he may mean port it to regular tios.
u/SirCmpwn March 30, 2015, 02:15:34 PM
Quote from: CKH4 on March 30, 2015, 02:14:14 PM
I think that he may mean port it to regular tios.

That would be very difficult. It depends on a lot of KnightOS specific features like configlib and reading from files in /var/castle/ and KnightOS threads and spawning model.

Edit: the code for the castle is here if anyone wants to give it a shot: https://github.com/KnightOS/castle
u/DarkestEx March 30, 2015, 02:16:42 PM
Quote from: SirCmpwn on March 30, 2015, 02:12:06 PM
You can write a new shell in C if you like. C support is still experimental but it's getting to the point where it's workable. Of course, if you just want to contribute to KnightOS, there are loads of KnightOS projects in C that run on PCs which you could definitely help with.
Okay. I will see where I can help.

Quote from: SirCmpwn on March 30, 2015, 02:12:06 PM
I don't understand. Do you mean the command line shell? That was removed because we don't have standard I/O or unix pipes yet.
Oh, when will there be Unix pipes and POSIX?
u/SirCmpwn March 30, 2015, 02:18:50 PM
Quote from: DarkestEx on March 30, 2015, 02:16:42 PM
Quote from: SirCmpwn on March 30, 2015, 02:12:06 PM
I don't understand. Do you mean the command line shell? That was removed because we don't have standard I/O or unix pipes yet.
Oh, when will there be Unix pipes and POSIX?

There will probably never be POSIX support. There will be Unix-like pipes sometime after kernel 1.0.0 (i.e. in a very long time).
u/novenary March 30, 2015, 02:19:32 PM
POSIX compliance isn't planned, the goal is to implement the general concept but not to make a full blown unix. That'd be overly complex and it's not needed anyway.

Woops another ninja.
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal