Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: James Kuyper Newsgroups: comp.lang.c Subject: Re: encapsulating directory operations Date: Mon, 26 May 2025 09:43:07 -0400 Organization: A noiseless patient Spider Lines: 21 Message-ID: <1011r5b$217n6$1@dont-email.me> References: <100h650$23r5l$1@dont-email.me> <20250520065158.709@kylheku.com> <100i2la$292le$1@dont-email.me> <87a5770xjw.fsf@nosuchdomain.example.com> <100j09o$2f04b$1@dont-email.me> <87tt5ezx9y.fsf@nosuchdomain.example.com> <100j4t3$2foah$1@dont-email.me> <87ldqqzfj0.fsf@nosuchdomain.example.com> <100kak8$2q0s6$1@dont-email.me> <87a575zvmb.fsf@nosuchdomain.example.com> <100o3sc$3ll6t$1@dont-email.me> <87bjrkxonr.fsf@nosuchdomain.example.com> <100ob9f$3n9m3$1@dont-email.me> <100ovse$3ubb5$1@dont-email.me> <87msb3ucmq.fsf@nosuchdomain.example.com> <100p1u4$3um4p$1@dont-email.me> <10103i7$1jdii$1@dont-email.me> <87a570jpe6.fsf@nosuchdomain.example.com> <101069l$1k3nm$1@dont-email.me> <1010g5b$1lr7o$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 26 May 2025 15:43:08 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ab719b15ae185bbec73d302b53dfd427"; logging-data="2137830"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WVrdrEM1jTsytfKSl5qpTeZR25p4Ktp0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:ikg3iPWK2p8JtJY1hZby2FxYJu4= Content-Language: en-US In-Reply-To: <1010g5b$1lr7o$1@dont-email.me> On 5/25/25 21:29, Janis Papanagnou wrote: > On 26.05.2025 00:40, Paul Edwards wrote: .... >> But not what I want. For reasons which are difficult for me >> to elaborate - "aesthetic", or "self-contained" may or may >> not be apt words - I want to include the ESCAPE in the >> C code, just like the "hello, world\n" bit. > > Doesn't '\e' work for you? > > char * str = "\e"; > puts (str); > > printf ("\e\n"); > > putchar ('\e'); > putchar ('\n'); > > Works for me. - Is that non-standard? Yes. It's a common extension.