Sfoglia il codice sorgente

Fix clearing with ctrl+k and ctrl+enter

Luna Stadler 4 anni fa
parent
commit
4198e37ae8
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      zig/sdl/hello_sdl.zig

+ 8 - 1
zig/sdl/hello_sdl.zig

93
                            msg[pos] = '_';
93
                            msg[pos] = '_';
94
                        },
94
                        },
95
                        c.SDLK_RETURN => {
95
                        c.SDLK_RETURN => {
96
                            result = runCommand(&msg);
96
                            result = runCommand(&msg, gpa);
97
                            var i: usize = 0;
98
                            while (i < max_chars) : (i += 1) {
99
                                msg[i] = ' ';
100
                            }
101
                            msg[max_chars] = 0;
102
                            pos = 0;
97
                        },
103
                        },
98
                        else => {},
104
                        else => {},
99
                    }
105
                    }
111
                                    msg[i] = ' ';
117
                                    msg[i] = ' ';
112
                                }
118
                                }
113
                                msg[max_chars] = 0;
119
                                msg[max_chars] = 0;
120
                                pos = 0;
114
                            },
121
                            },
115
                            else => {},
122
                            else => {},
116
                        }
123
                        }