defaults.c 801 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * windows/utils/defaults.c: default settings that are specific to Windows.
  3. */
  4. #include "putty.h"
  5. #include <commctrl.h>
  6. FontSpec *platform_default_fontspec(const char *name)
  7. {
  8. if (!strcmp(name, "Font"))
  9. return fontspec_new("Courier New", false, 10, ANSI_CHARSET);
  10. else
  11. return fontspec_new_default();
  12. }
  13. Filename *platform_default_filename(const char *name)
  14. {
  15. if (!strcmp(name, "LogFileName"))
  16. return filename_from_str("putty.log");
  17. else
  18. return filename_from_str("");
  19. }
  20. char *platform_default_s(const char *name)
  21. {
  22. if (!strcmp(name, "SerialLine"))
  23. return dupstr("COM1");
  24. return NULL;
  25. }
  26. bool platform_default_b(const char *name, bool def)
  27. {
  28. return def;
  29. }
  30. int platform_default_i(const char *name, int def)
  31. {
  32. return def;
  33. }