Commit a332115
committed
use tea.View.ProgressBar instead of raw escape codes
Replace manual ConEmu progress bar escape sequences with Bubble Tea v2's
native ProgressBar support on the tea.View struct. This uses the proper
OSC 9;4 sequences via the framework instead of writing raw bytes to
stderr, and automatically handles cleanup when the view changes.
The progress bar state (indeterminate while working) is now set
declaratively in the View() function based on chatPage.IsWorking(),
following the Elm Architecture pattern.
Assisted-By: cagent1 parent b7cbaf9 commit a332115
3 files changed
+8
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
611 | 610 | | |
612 | 611 | | |
613 | 612 | | |
614 | | - | |
615 | | - | |
616 | 613 | | |
617 | 614 | | |
618 | 615 | | |
| |||
853 | 850 | | |
854 | 851 | | |
855 | 852 | | |
856 | | - | |
857 | | - | |
858 | 853 | | |
859 | 854 | | |
860 | 855 | | |
| |||
892 | 887 | | |
893 | 888 | | |
894 | 889 | | |
895 | | - | |
896 | 890 | | |
897 | 891 | | |
898 | 892 | | |
| |||
999 | 993 | | |
1000 | 994 | | |
1001 | 995 | | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| |||
222 | 221 | | |
223 | 222 | | |
224 | 223 | | |
225 | | - | |
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1891 | 1891 | | |
1892 | 1892 | | |
1893 | 1893 | | |
1894 | | - | |
| 1894 | + | |
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
| |||
1901 | 1901 | | |
1902 | 1902 | | |
1903 | 1903 | | |
| 1904 | + | |
1904 | 1905 | | |
1905 | 1906 | | |
1906 | 1907 | | |
| |||
1957 | 1958 | | |
1958 | 1959 | | |
1959 | 1960 | | |
1960 | | - | |
| 1961 | + | |
1961 | 1962 | | |
1962 | 1963 | | |
1963 | | - | |
| 1964 | + | |
1964 | 1965 | | |
1965 | 1966 | | |
1966 | 1967 | | |
| |||
2136 | 2137 | | |
2137 | 2138 | | |
2138 | 2139 | | |
2139 | | - | |
| 2140 | + | |
2140 | 2141 | | |
2141 | 2142 | | |
2142 | 2143 | | |
2143 | 2144 | | |
2144 | 2145 | | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
2145 | 2149 | | |
2146 | 2150 | | |
0 commit comments