summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-07Kernel: Use Userspace<T> for the chown syscallBrian Gianforcaro
2020-08-07Kernel: Use Userspace<T> for the mount syscallBrian Gianforcaro
2020-08-07AK: Remove unnecessary clang-format off comments.asynts
2020-08-07UserspaceEmulator: Result is initialized after OR with all-1 immediateAndreas Kling
When compiling with "-Os", GCC produces the following pattern for atomic decrement (which is used by our RefCounted template): or eax, -1 lock xadd [destination], eax Since or-ing with -1 will always produce the same output (-1), we can mark the result of these operations as initialized. This stops us from complaining about false positives when running the shell in UE. :^)
2020-08-07Shell: Make Command::redirections a NonnullRefPtrVectorAndreas Kling
2020-08-07Shell: Make VariableDeclarations::Variable store NonnullRefPtrsAndreas Kling
2020-08-07Shell: Make resolve_without_cast() return NonnullRefPtr<Value>Andreas Kling
2020-08-07Shell: Store ListValue's values in a NonnullRefPtrVector<Value>Andreas Kling
A ListValue never stores null Values, so it makes sense to restrict it. This also propagates use of NonnullRefPtr to the create() helpers. There's a small bit of awkwardness around the use of initializer_list, since we cannot directly construct a NonnullRefPtrVector from one.
2020-08-07Shell: Add some obvious move() calls in AST constructorsAndreas Kling
2020-08-07LibWeb: Remove unused LayoutPosition comparison operatorsAndreas Kling
2020-08-07KeyboardSettings: Preselect the current keymap in the dropdown menu.Valtteri Koskivuori
This is the little omission that I originally set out to fix, and sure enough, I got to delve into Kernel land and back to implement it. Lots of fun!
2020-08-07AudioServer: Lock the process veil after startupBrian Gianforcaro
We can't do any file syscalls anyway because of the reduction of pledges, so we might as well lock the veil anyway.
2020-08-07LibLine: Add Ctrl-k shortcutNico Weber
Only does the 'delete to end of line' bit for now. No yank ring support yet.
2020-08-07Documentation: Add a mention of the recent requirement for a newerValtteri Koskivuori
host compiler. On macOS this might have to be specified explicitly.
2020-08-07LibLine: Add Alt-t shortcut for transposing wordsNico Weber
2020-08-06LibLine: Add binding for Alt-backspaceNico Weber
It backward-deletes a word like Ctrl-W, but it has a slightly different definition of what a word is. For example, with the caret behind `gcc -fsanitize=address`, Ctrl-W would delete '-fsanitize=address' but Alt-backspace would only delete 'address'.
2020-08-06LibLine: Fix "word" handling for alt-d/u/l/c/f/b and ctrl-left/rightNico Weber
All these shortcuts treat consecutive alnums as a word, not consecutive non-spaces. For example, `alias KILL='kill -9'` can now be written by typing it out lowercase, then hitting ctrl-a alt-f alt-u. Ctrl-W still treats a word as a sequence of non-spaces. Alt-backspace in a future patch will add the ability to backward-delete a word that's a sequence of alnums.
2020-08-06Userland: Use Core::ArgsParser for 'aplay'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'avol'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'basename'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'chgrp'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'disasm'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'hostname'Linus Groh
2020-08-06Userland: Handle invalid JSON in 'jp'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'jp'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'md'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'modload'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'modunload'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'ping'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'pro'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'purge'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'realpath'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'rmdir'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'su'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'tr'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'tt'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'uname'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'which'Linus Groh
2020-08-06Userland: Use Core::ArgsParser for 'yes'Linus Groh
2020-08-06LibLine+Shell: Remove unused split_mechanismNico Weber
It was only read in should_break_token(), which had no callers. should_break_token() also got `foo\\ bar` and `"foo bar"` wrong.
2020-08-06LibLine: Add binding for Alt-.Nico Weber
2020-08-06Base: Update Hungarian keymap with accented characters and more symbolsTibor Nagy
Also fixing a bug where the numpad keys were accidentally shifted by one position in the JSON array.
2020-08-06LibWeb: Move text selection serialization from PageView to FrameAndreas Kling
This logic doesn't depend on anything at the widget layer, so it can move down to the frame layer.
2020-08-06LibLine: Add bindings for Alt-u, Alt-l, Alt-cNico Weber
2020-08-06LibLine: Add comments for which keys trigger VWERASE and VKILLNico Weber
2020-08-06LibLine: Add Alt-d binding to forward-delete a wordNico Weber
2020-08-06Keymaps: Add European Portuguese keymapEdgar Araújo
2020-08-06LibThread: Remove redundant r/w of atomic variable in Lock::lock() (#3013)Muhammad Zahalqa
m_holder.compare_exchange_strong(expected, desired, ...) will either successfully update the value to desired if == expected or put the current value in expected otherwise.
2020-08-06Shell: Start adding some alt shortcutsNico Weber
This adds Alt-f to go forward by a word, and Alt-b to go backward by a word (like ctrl-arrow-left / ctrl-arrow-right already do). Behind the scenes, alt-key is implemented by sending <esc> followed by that key, and typing <esc> f/b for moving by a word hence works too (in all other shells too, not just in Serenity's). While here, rename some InputState enum values to make the slightly expanded use of <esc> clearer, and expand a few comments.
2020-08-06ProcFS: Expose the current kernel keymap as /proc/keymapValtteri Koskivuori
Programs can now ask the kernel which keymap is in use by reading from /proc/keymap