-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keyword to start tlf in s&p mode #396
Conversation
We should consider to add this feature into |
Ok, I'll start working on this. Does command line param should remain or remove it? |
Great, thanks!
I think it's a good feature, so I'd keep it. If it becomes available to configure the mode via the config file, it may help to override it (similar to But wait for other opinions. |
I think the typical use case for this is "I'm a small pistol, I want to work (mostly) in S&P". |
Ok, so now we can setup one of 5 builtin modes. I don't know how to add screenshots here as test evidence. |
Looks good. Practically only RUN and S&P are relevant, the others (AUTO, KEYBOARD, NONE) are just internal states. You can add tests for it to |
We could also have CQ as an alias for RUN. Maybe it's somewhat more human-readable. |
Thanks, just can you tell me what are requirements to build tests? I can't find any documentation on that.? Why RUN mode is displayed as "CQ"? Maybe I should change it to commonly used "RUN" word? |
Showing CQ on the upper left corner is just fine. Let's then just stay consistent with whatever shown on the screen, so allow only For adding test and updating the man page please check for example #350 |
Don't know why one test is failing FAIL: run_rules. I've checked it on main branch and it's failing too. So rather not caused by my changes. One more fix is in progress. Sorry |
Try to run locally the tests with |
Sorry to feel again to think to be forced to compel with this one, and to give negative comment on this one. When you start a contest, independent of starting options, your first physical action will be the one to perfectly decide what you want:
I am afraid but I absolutely do not see any use for such a startup option. |
@ha5se I see your point, but I find this configuration handy for mostly S&P operators. Note that this is a configuration parameter rather than a command line option. So it has to be set just once as a preference. @darvark Looks good. One more minor thing: please add/move the initialization of (a git-technical comment: it will be easier to keep your repo in sync with TLF if PRs are created from dedicated branches, not from master) |
You can also tick out this issue from the ToDo file. :-) |
@zcsahok Thanks, |
I think I should change behavior of that variable, and make it optional, just not to break backward compatibility. |
I think it is backward compatible: if not present then CQ mode is selected. |
I mean after that change will be merged to master, each user using this branch will have to update their configuration files and add new keyword, in other case he will get error message during tlf start. I just want to avoid such situations, so still as you wrote if option not present then default behaviour CQ is selected, but we would be able to start tlf based on old configs |
There is no need to touch the configuration: the default mode (CQ) set in You can also check this by simply commenting out the keyword from your logcfg.dat: TLF shall start in CQ mode without any complaints. |
yes, your right. Sorry for late reply. Everything works as expected. |
Thanks for working on this, this is something I've also wanted for a long time. @ha5se: you are right that tlf could probably figure out the mode on its own, but then the startup default still needs switching to S&P. |
Thanks! |
Solving one of ToDo items. Added command line argument to start tlf in S&P mode. Executing
tlf -p
will force s&p mode at startup.