Advertisement
uaa

sj3: bskey configuration (malfunction)

uaa
Feb 17th, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. diff --git a/Sjrc b/Sjrc
  2. index 879eccb..2e73168 100644
  3. --- a/Sjrc
  4. +++ b/Sjrc
  5. @@ -63,6 +63,7 @@
  6. #.key.toggle ^G
  7. #.key.reconnect ^R
  8. #.delkey ^D
  9. +.bskey ^?
  10.  
  11. # 文字種切り替えキーを押すと決定する
  12. #.FlushAfterConversion on
  13. diff --git a/eucmessage.c b/eucmessage.c
  14. index 5f19017..abdab71 100644
  15. --- a/eucmessage.c
  16. +++ b/eucmessage.c
  17. @@ -381,7 +381,8 @@ void init_funcs(void)
  18. funcs[19].keyword = WCRkerrbell; funcs[19].func = set_rkebell;
  19. funcs[20].keyword = WCServer; funcs[20].func = set_server;
  20. funcs[21].keyword = WCDictionary; funcs[21].func = set_dict;
  21. - funcs[22].keyword = NULL; funcs[22].func = NULL;
  22. + funcs[22].keyword = WCBskey; funcs[22].func = set_bskey;
  23. + funcs[23].keyword = NULL; funcs[23].func = NULL;
  24. }
  25.  
  26. struct valtbl mode_val[5];
  27. diff --git a/sj3.h b/sj3.h
  28. index d7491cc..2697192 100644
  29. --- a/sj3.h
  30. +++ b/sj3.h
  31. @@ -371,6 +371,7 @@ int isDelimitor(unsigned char); // -> sjrc.c
  32. void set_forkshell(struct wordent[]);
  33. void set_intr(struct wordent[]);
  34. void set_delkey(struct wordent[]);
  35. +void set_bskey(struct wordent[]);
  36. int isintr(unsigned char);
  37. void set_goto(struct wordent[]);
  38. int IsGoto(unsigned char);
  39. diff --git a/sjrc2.c b/sjrc2.c
  40. index 5513d71..e872f0c 100644
  41. --- a/sjrc2.c
  42. +++ b/sjrc2.c
  43. @@ -445,6 +445,15 @@ void set_delkey(struct wordent word[])
  44. set_del (c);
  45. }
  46.  
  47. +void set_bskey(struct wordent word[])
  48. +{
  49. + int c;
  50. +
  51. + if (word[1].word_str[0] != '\0')
  52. + if ((c = eval_key (word[1].word_str)) != -1)
  53. + set_bs (c);
  54. +}
  55. +
  56. int isintr(unsigned char c)
  57. {
  58. if (c == intr_code)
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement