Shutdown And Restart Buttons
#1
Posted 01 September 2013 - 07:11 AM
I know that there's Ctrl-S and Ctrl-R, but sometimes, it's annoying when you need to hold Ctrl-R for 3 seconds. And sometimes you need to do it like 10 times in a row.
It's should be something like that: (well not exactly like that)
Terminate button will be cheaty, cause you can do os.pullEvent=os.pullEvenRaw and use it as extra button.
#2
Posted 01 September 2013 - 07:26 AM
#3
Posted 01 September 2013 - 07:32 AM
#4
Posted 01 September 2013 - 08:25 AM
#5
Posted 01 September 2013 - 09:23 AM
But this will come in handy if the shell coroutine errored, you can easily restart the pc. Because then it most of the time doesnt detect the shortcut keys. I really support this since my program lately stops the shell coroutine a lot!
#6
Posted 01 September 2013 - 09:48 AM
#7
Posted 01 September 2013 - 09:50 AM
KingOfNoobs, on 01 September 2013 - 09:48 AM, said:
#8
Posted 01 September 2013 - 10:12 AM
KingOfNoobs, on 01 September 2013 - 09:48 AM, said:
I agree with you; only a power button, no shutdown button.
This shutdown button should call os.shutdown() as opposed to just terminating the computer in case the user wants to override os.shutdown().
There shouldn't be a terminate button, but it would be nice ^T didn't take so long - instead, pushing ^T should immediately fire a terminate_warn event or something to that effect, and then the real terminate event will fire 3 seconds later like it does now. That way, you can terminate programs (that haven't crashed) more quickly. But this terminate_warn event can be easily done in code by a keyboard handler daemon.
#9
Posted 01 September 2013 - 10:57 AM
KingOfNoobs, on 01 September 2013 - 09:48 AM, said:
ZudoHackz, on 01 September 2013 - 09:50 AM, said:
electrodude512, on 01 September 2013 - 10:12 AM, said:
electrodude512, on 01 September 2013 - 10:12 AM, said:
function os.pullEvent( filter ) local event = { os.pullEventRaw(filter) } if event[1] == "terminate" then error("Terminated", 0) end return unpack(event) endSo basically what I'm saying here it that programs can be made in a way that doesn't terminate a program when CTRL+T is pressed so there is no need to having a "terminate_warn" event.
#10
Posted 01 September 2013 - 11:57 AM
where is your terminate button?
where is your reboot button?
And please dont say 'go to start and click there on reboot'. Im talking about the hardware.
#12
Posted 01 September 2013 - 12:23 PM
How about SysRq button that will trigger "sysrq" event? It's like just what i said about terminate button, but terminate button is overpowered
#13
Posted 01 September 2013 - 12:55 PM
#14
Posted 01 September 2013 - 01:22 PM
Power and Reset buttons like on real life computers.
I would not be against Terminate and would be glad if System key added to throw special event.
Place them on the border as small icons. Like window icons. May be with mouseover hints.
#16
Posted 01 September 2013 - 01:57 PM
ElvishJerricco, on 01 September 2013 - 12:55 PM, said:
#17
Posted 01 September 2013 - 04:01 PM
Engineer, on 01 September 2013 - 01:57 PM, said:
ElvishJerricco, on 01 September 2013 - 12:55 PM, said:
Yea but that's a rather unimportant distinction. A button is a button whether it's on the screen or on the edge
#18
Posted 01 September 2013 - 04:11 PM
#19
Posted 01 September 2013 - 04:20 PM
Symmetryc, on 01 September 2013 - 04:11 PM, said:
Which is why the keyboard shortcuts exist. And don't get me wrong I'd like to have this included, but there's been countless suggestions denied because they could be easily programmed yourself. Obviously I can't know what the devs would say and I don't mean to speak for them. But if I were to guess based on past events, I'd say don't get your hopes up. Especially since the keyboard shortcuts are already good enough to function with.
#20
Posted 01 September 2013 - 04:27 PM
ElvishJerricco, on 01 September 2013 - 04:20 PM, said:
Symmetryc, on 01 September 2013 - 04:11 PM, said:
Which is why the keyboard shortcuts exist. And don't get me wrong I'd like to have this included, but there's been countless suggestions denied because they could be easily programmed yourself. Obviously I can't know what the devs would say and I don't mean to speak for them. But if I were to guess based on past events, I'd say don't get your hopes up. Especially since the keyboard shortcuts are already good enough to function with.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users