Andreas Kling
612c02307e
AK: Add bounds assertions in Vector::operator[].
...
I was sure I had this already.
2019-02-05 06:37:03 +01:00
Andreas Kling
c77f32d2f0
LizaBlack8x10: Import a very heavy variant of Liza.
2019-02-04 16:02:30 +01:00
Andreas Kling
d4aaba6bed
FontEditor: Minor UI improvements.
...
- Implement focus for custom widgets.
- Add two live demo labels with an English pangram in upper/lower case.
2019-02-04 15:38:03 +01:00
Andreas Kling
d7307c3119
Kernel: Ignore SIGCHLD by default.
...
Also use an enum for the rather-confusing return value in dispatch_signal().
I will go through the rest of the signals and set them up with the
appropriate default dispositions at some other point.
2019-02-04 14:06:38 +01:00
Andreas Kling
ba6ffea03c
Kernel: Process should send SIGCHLD to its parent when it dies.
2019-02-04 13:30:03 +01:00
Andreas Kling
7fe600f250
LibGUI: Use LightGray as the base UI color.
...
This feels nicely reminiscent of the gap in time between Win3.11 and Win95,
one of my favorite eras in UI look-and-feel.
2019-02-04 11:53:26 +01:00
Andreas Kling
6f787f6877
LibGUI: Use LizaBold as the default button font.
2019-02-04 11:41:01 +01:00
Andreas Kling
cacba45f1c
LizaBold8x10: Import a bold variant of Liza8x10 and make it the default bold.
...
Start using it right away for window titles.
2019-02-04 11:37:15 +01:00
Andreas Kling
ac11c90dee
ProcFS: Fix wrong linkage for /proc/cpuinfo inode.
2019-02-04 10:38:54 +01:00
Andreas Kling
bc6ff35428
LibGUI: GTextBox should only run a caret blink timer when focused.
2019-02-04 10:34:56 +01:00
Andreas Kling
c0cffe1134
Add a /bin/top program for process table monitoring.
...
It automagically computes %CPU usage based on the number of times a process
has been scheduled between samples. The colonel task is used as idle timer.
This is pretty cool. :^)
2019-02-04 10:28:12 +01:00
Andreas Kling
642e2447c9
Terminal: Fix broken parsing of background color escape.
2019-02-04 10:22:47 +01:00
Andreas Kling
356abbb7ee
Kernel: Process should disassociate from its TTY when it dies.
...
Just because we die doesn't mean we got waited on yet, so keeping around
a dangling TTY pointer is just asking for trouble.
2019-02-04 10:21:15 +01:00
Andreas Kling
9126d08a43
Terminal: Avoid dirtying lines when clearing them has no visual effect.
2019-02-04 08:53:53 +01:00
Andreas Kling
e88c8eae6a
AK: Fix leak in HashTable move assignment operator.
2019-02-04 08:53:12 +01:00
Andreas Kling
b51031bb54
Kernel: Add a /proc/all process table dump.
...
This will be useful for implementing some process-related utilities.
2019-02-03 18:53:18 +01:00
Andreas Kling
dddd0e7b03
Get nyancat nyanning in Serenity.
...
I found a cute program that renders an animated nyancat in the terminal.
This patch adds enough hackery to get it working correctly. :^)
2019-02-03 16:11:28 +01:00
Andreas Kling
3944c00f23
Terminal: Add limited support for 'M' escape sequence (delete line.)
2019-02-03 14:00:48 +01:00
Andreas Kling
31f44481f3
Add /dev/{stdin,stdout,stderr} as symlinks to /proc/self/fd/{0,1,2}
...
Also change /bin/cat to open /dev/stdin if no arguments are provided.
2019-02-03 12:38:03 +01:00
Andreas Kling
5e9ba2ac84
Kernel: Rewrite ProcFS.
...
Now the filesystem is generated on-the-fly instead of manually adding and
removing inodes as processes spawn and die.
The code is convoluted and bloated as I wrote it while sleepless. However,
it's still vastly better than the old ProcFS, so I'm committing it.
I also added /proc/PID/fd/N symlinks for each of a process's open fd's.
2019-02-03 12:33:11 +01:00
Andreas Kling
ab56f36bfb
LibC: strdup() forgot to allocate space for the null character.
2019-02-03 11:49:23 +01:00
Andreas Kling
9da9cce4f7
SharedGraphics: Font::load_from_file() forgot to close() the font file.
2019-02-03 08:18:16 +01:00
Andreas Kling
1fffc0ae60
Kernel: stat(), fstat() and lstat() didn't return some error codes.
2019-02-03 06:27:16 +01:00
Andreas Kling
0c9a2b1430
Kernel: Oops, I mixed up st_dev and st_rdev in struct stat.
2019-02-03 06:23:10 +01:00
Andreas Kling
e895d6c48e
Kernel: Add /proc/self, a symlink to the /proc/$PID.
...
This will be useful for implementing things like /dev/stdin.
2019-02-03 04:54:52 +01:00
Andreas Kling
c2adfd0e2d
LibC: Implement various things to get GNU bc building and running.
...
Looks like that's all we needed, and bc now runs. :^)
2019-02-03 04:32:31 +01:00
Andreas Kling
3a9c01619f
Ext2FS: Avoid a kmallocation every time we fetch an inode from disk.
2019-02-03 04:05:30 +01:00
Andreas Kling
db2422d0d3
Terminal: Constrain the cursor inside the terminal rect.
2019-02-03 04:04:42 +01:00
Andreas Kling
333aa1646c
Kernel: Increase default userspace stack size to 64 kilobytes.
2019-02-03 03:56:08 +01:00
Andreas Kling
2a093ada33
WindowServer: Add some stripes to the window titles.
...
I like the look of this right now. Maybe later I'll feel differently.
2019-02-03 03:38:44 +01:00
Andreas Kling
3198639730
SharedGraphics: Add missing clipping in draw_line().
2019-02-03 03:37:55 +01:00
Andreas Kling
dd931f136e
guitest2: Stop showing the font test window by default.
2019-02-03 03:36:10 +01:00
Andreas Kling
663aad4036
FontEditor: Add text box for editing the font name.
2019-02-03 03:06:58 +01:00
Andreas Kling
5877feab1b
Liza8x10: Tweak some glyphs.
2019-02-03 03:06:43 +01:00
Andreas Kling
2d17fe58bc
Kernel: Remove unnecessary assertion in page_in_from_inode().
...
Turns out I had confused myself about the situation. Just because a page
has been paged in by another process doesn't mean that the *current*
process's page directory has the present bit set! D'oh. :^)
2019-02-03 03:04:40 +01:00
Andreas Kling
3eeff0dd14
Kernel: Improve crash info if page_in_from_inode() is called redundantly.
2019-02-03 02:49:59 +01:00
Andreas Kling
c63d476da2
Kernel: Let's have cli() and sti() clobber memory.
...
I don't like the idea of the compiler reordering anything around either
cli() or sti(), so let's make sure it doesn't.
2019-02-03 02:47:55 +01:00
Andreas Kling
e2f27aa7b5
Userland: Make /bin/date pretty-print the date, too.
2019-02-03 02:47:37 +01:00
Andreas Kling
7e4376d469
Kernel: When entering page_in_from_inode(), assert that !physical_page.
...
It would be really weird to enter here with a physical page already present
in the VMObject's page slot. Let's assert that this doesn't happen.
2019-02-03 02:33:47 +01:00
Andreas Kling
d8a172609c
FontEditor: Add a grid to the glyph editor widget.
2019-02-03 02:20:30 +01:00
Andreas Kling
e97fea3169
Liza8x10: Tweak some glyphs.
2019-02-03 02:20:12 +01:00
Andreas Kling
10fde0d707
Userland: Pretty-print modification times in /bin/ls.
2019-02-03 02:14:41 +01:00
Andreas Kling
5751063c63
Load the default font from disk in the kernel as well.
2019-02-03 01:44:08 +01:00
Andreas Kling
abe3f515b1
Make font loading use mmap().
...
This exposed a serious race condition in page_in_from_inode().
Reordered the logic and added a paging lock to VMObject.
Now, only one process can page in from a VMObject at a time.
There are definitely ways to optimize this, for instance by making
the locking be per-page instead. It's not something that I'm going
to worry about right now though.
2019-02-03 01:36:25 +01:00
Andreas Kling
7f91aec25c
Support font files.
...
This only works with the userspace build of SharedGraphics so far.
It's also very slow at loading fonts, but that's easy to fix.
Let's put fonts in /res/fonts/.
2019-02-02 23:13:12 +01:00
Andreas Kling
655753c557
SharedGraphics: Fix Font.cpp kernel build.
2019-02-02 17:42:16 +01:00
Andreas Kling
6fc3c38324
Start working on a simple graphical font editor.
...
Editing fonts by editing text files is really slow and boring.
A simple font editor seems like a good way to take LibGUI for a spin.
2019-02-02 08:07:06 +01:00
Andreas Kling
5e0b7f1a56
Add basic automatic dependency management to Makefiles.
2019-02-02 04:41:59 +01:00
Andreas Kling
7e64154d3f
Remove Editor/ since I wasn't maintaining or trying to develop it.
2019-02-02 04:28:45 +01:00
Andreas Kling
76f53b40f4
LibC: Add some things needed to build GNU bc.
...
This patch adds vprintf(), sig_atomic_t, random() and strdup().
bc doesn't build yet, but it will.
2019-02-01 16:03:21 +01:00