summaryrefslogtreecommitdiffstats
path: root/gui/terminal.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Vibration: allow BoardConfig to disable vibration for a device.bigbiff bigbiff2019-03-181-0/+4
| | | | Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
* Merge AOSP android-9.0.0_r3Ethan Yonker2018-08-241-4/+9
| | | | | | Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0 Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
* Support v2 fstab formatEthan Yonker2017-11-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | Auto detect and support both the v1 and v2 fstab formats Support putting TWRP style flags in a separate /etc/twrp.flags file twrp.flags format is the same as twrp.fstab (v1 with TWRP flags) Support using a wildcard in a block device and find all partitions: /usb-otg vfat /dev/block/sda* Support using sysfs entries (voldmanaged) and read uevents and scan for wildcard partitions from uevent data. (twvold?) May not be complete for some of the newer flags found in fstabs in newer build trees and there is a slim chance of a crash if the user removes a removable device while TWRP is performing actions. May need to add some kind of mutex to prevent the 2 threads from causing this crash. We need to start somewhere though and this change is pretty innocuous when not using a v2 fstab. Change-Id: I617d97c7db332cbe671a9d2b8ad98b3d9c4f03cc
* gui: fix line wrapping in terminal, issue #876that2017-05-151-8/+11
| | | | | | | Apparently we are supposed to delay going to the next line until the next character is printed. Change-Id: I5cd0cc128cc00dcdd0dd2dd9508281f1249db257
* Whitespace cleanupMatt Mower2017-01-181-4/+7
| | | | Change-Id: I93c65973679894bb8587da4b38b410d38036b8bd
* gui: fix Enter key in terminalthat2016-08-011-2/+0
| | | | | | Translating CR to LF was an old hack that breaks Enter in nano. Change-Id: If259e8b133f2f56f4126a1fb68856bf014a2daae
* HACK: fix input focus on terminalEthan Yonker2016-03-311-1/+5
| | | | | | | | | | This makes the terminal grab focus no matter what on SetPageFocus which isn't ideal but it's unlikely that any other visible input elements will be on the page with a terminal anyway. Credit _that for pointing me in the right direction for this fix. Change-Id: I2b0e6fc1169521f58e863c58f7ef3578413dfb21
* Update minuitwrp graphics in line with latest minuiEthan Yonker2016-01-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Note: events.cpp is still old code renamed to cpp to make it easier to call functions like gr_fb_width(). I had to modify AOSP fbdev code to provide a separate memory surface for drawing to as drawing directly to the framebuffer resulted in rendering taking about 5 times longer. I also modified AOSP adf code to provide a separate memory surface for drawing for the same performance reasons. The Nexus 9 supports adf graphics. Overlay graphics work on at least one device. Overlay provides a separate memory buffer already so performance is good. I do not have a drm device yet that I know of. I made some attempt to update the drm code to determine the correct pixel format based on the drm graphics format, but what is available in pixel flinger and what is available in drm do not line up all that well. Reports are that the Pixel C is using drm graphics, but performance is slow, likely due to the use of a mmap instead of a memory buffyer. Change-Id: Ibd45bccca6ac2cb826037aa9b2aa5065cf683eed
* gui: fix return value of NotifyKeythat2016-01-191-0/+2
| | | | | | | Only the last action got its keys and ate all of them (om nom nom). This fixes the power button action that activates the lock screen. Change-Id: Ia724568b159090c2c14a282cf3927915b2dc70e7
* gui: reap terminal child process to avoid zombiesthat2016-01-111-10/+21
| | | | Change-Id: Ia46d8acb8b13075a2519df1deb91dd30a5969a48
* gui: add terminal emulatorthat2016-01-071-0/+888
Emulates enough of a VT-100 to run busybox vi. Change-Id: I99c829c6c9de2246194ecb8b8b3cdf4ac34a0606