Romain Vimont
|
1650b7c058
|
Add --pause-on-exit
Add an option to make scrcpy pause on exit.
Three behaviors are possible:
- always pause on exit:
--pause-on-exit
--pause-on-exit=true
- never pause on exit:
(no option)
--pause-on-exit=false
- pause when scrcpy returns with an error (a non-zero exit code):
--pause-on-exit=if-error
This is useful to prevent the terminal window from automatically
closing, so that error messages can be read.
Refs #3817 <https://github.com/Genymobile/scrcpy/pull/3817>
Refs #3822 <https://github.com/Genymobile/scrcpy/pull/3822>
PR #4130 <https://github.com/Genymobile/scrcpy/pull/4130>
|
2023-10-11 09:43:44 +02:00 |
|
Romain Vimont
|
e4d5c1ce36
|
Move scrcpy option structs to options.h
This will allow to define symbols in options.c without all the
dependencies of scrcpy.c.
|
2021-10-27 18:43:47 +02:00 |
|
Romain Vimont
|
ab912c23e7
|
Define feature test macros in common.h
This enables necessary functions once for all.
As a consequence, define common.h before any other header.
|
2021-01-17 14:08:48 +01:00 |
|
Romain Vimont
|
59feb2a15c
|
Group common includes into common.h
Include config.h and compat.h in common.h, and include common.h from all
source files.
|
2021-01-08 19:22:10 +01:00 |
|
Romain Vimont
|
1b76d9fd78
|
Customize shortcut modifier
Add --shortcut-mod, and use Alt as default modifier.
This paves the way to forward the Ctrl key to the device.
|
2020-08-01 16:31:27 +02:00 |
|
Romain Vimont
|
d950383b72
|
Move command-line parsing to a separate file
|
2019-12-08 23:18:57 +01:00 |
|